<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('fbfans/index')}">粉丝页管理列表列表</a></li>
			<li><a href="{:url('fbfans/add')}">添加粉丝页管理列表</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('fbfans/index')}">
            站长姓名:
            <input type="text" class="form-control" name="uname" style="width: 120px;" value="{:input('request.uname/s','')}" placeholder="请输入站长姓名">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('fbfans/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>id</th>
					<th>站长姓名</th>
					<th>站点域名</th>
					<th>粉丝页链接</th>
					<th>记录描述</th>
					<th>创建时间</th>
					<th>更新时间</th>
					<th>状态</th>
					<th width="130">{:lang('ACTIONS')}</th>

				</tr>
			</thead>
			<tbody>
				<foreach name="fbfansList" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.uname}</td>
					<td>{$vo.domain}</td>
					<td>{$vo.fburl}</td>
					<td>{$vo.website_chage_description}</td>
					<td>{$vo.create_time}</td>
					<td>{$vo.update_time}</td>
					<td style="color:<?php echo ($vo['status']==0)? 'red':'green';?>">{$status=($vo['status'] == 1)?"正常":"已挂";}</td>
					<td>
						<a href='{:url("fbfans/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
						<a href="{:url('fbfans/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>